import request from '@/utils/request'

// 查询页面拖拽列表
export function listLayoutConfig(query) {
  return request({
    url: '/bk/LayoutConfig/list',
    method: 'get',
    params: query
  })
}

// 查询页面拖拽详细
export function getLayoutConfig(id) {
  return request({
    url: '/bk/LayoutConfig/' + id,
    method: 'get'
  })
}

// 新增页面拖拽
export function addLayoutConfig(data) {
  return request({
    url: '/bk/LayoutConfig',
    method: 'post',
    data: data
  })
}

// 修改页面拖拽
export function updateLayoutConfig(data) {
  return request({
    url: '/bk/LayoutConfig',
    method: 'put',
    data: data
  })
}


// 批量更新页面布局配置
export function batchUpdateLayoutConfig(data) {
  return request({
    url: '/bk/LayoutConfig/batch',
    method: 'put',
    data: data
  })
}

// 删除页面拖拽
export function delLayoutConfig(id) {
  return request({
    url: '/bk/LayoutConfig/' + id,
    method: 'delete'
  })
}
